/* 常量 */

export const ACCESS_TOKEN = 'ACCESS-TOKEN'
export const USER_ROUTES = 'USER-ROUTES'
export const USER_INFO = 'USER-INFO'

export const HTTP_STATUS_CODE = {
  unauthorized: 401, // 未授权、登录过期
  forbidden: 403 // 禁止访问
}

export const RESPONSE_STATUS_CODE = {
  success: 0, // 成功
  fail: 1 // 失败
}

/**
 * dayjs 的格式
 * @link: https://github.com/iamkun/dayjs
 * */
export const DATE_FORMAT = {
  date: 'YYYY-MM-DD',
  dateCN: 'YYYY年MM月DD日',
  dateTime: 'YYYY-MM-DD HH:mm:ss',
  time: 'HH:mm:ss'
}
